<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Crea Pacchetto</title>
	<link rel="stylesheet" type="text/css" href="../styles/style.css" />
</h:head>
<h:body>
<div id="container">
<div id="box">

<header class="banner">
<span id="titoloPagina"> Ricerca le istanze per creare il pacchetto  </span>
</header>

<div id="externalborder1">
<p:spacer height="40px" />

<h:form>
<div id="externalborderChoose">
<div id="infoAgg" style="text-align: center;">
		<h:outputText rendered="#{param.esiste==1}" value="Esiste già un pacchetto per questa citta e questa tipologia"></h:outputText>
		</div>
	<h:panelGrid columns="3" id="selezionaCittaETipologia">
						
				<p:outputLabel for="allah">Città:</p:outputLabel>
				<p:inputText id="allah" value="#{creazionePacchetto.citta}" placeholder="Città" required="true"/>
				<p:message for="allah" display="icon" />
				
				<p:outputLabel for="tipologia">Tipologia:</p:outputLabel>
				<p:selectOneMenu id="tipologia" value="#{creazionePacchetto.tipologia}">  
		            <f:selectItem itemLabel="Romantico" itemValue="Romantico" />  
		            <f:selectItem itemLabel="Culturale" itemValue="Culturale" />  
		            <f:selectItem itemLabel="Sportivo" itemValue="Sportivo" /> 		             
		            <f:selectItem itemLabel="Relax" itemValue="Relax" />		             
		            <f:selectItem itemLabel="Vegano" itemValue="Vegano" /> 		             
		            <f:selectItem itemLabel="Ladrona" itemValue="Ladrona" />  
        		</p:selectOneMenu>  
				<p:message for="tipologia" />			

			</h:panelGrid>
		<p:spacer height="40px"/>
<div id="centerbuttonStrange" style="margin-left:138.5px; margin-right:138.5px;">
<h:commandLink id="registerlink" update="selezionaCittaETipologia" action="#{creazionePacchetto.ricercaIstanze()}">
<div class="button" id="register">
Crea il pacchetto
</div>
</h:commandLink>
</div>
			
</div>
	
</h:form>
<p:spacer height="40px"/>
<h:form>

</h:form>
</div>
</div>
<div id="push">
</div>
</div>

<div id="footer">
<h:button id="homepage" value="Homepage" outcome="index.xhtml"></h:button>
</div>

</h:body>
		

</html>